<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue5</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="app-1">
    <input v-model="message" placeholder="edit me">
    <p>Message is: {{ message }}</p>
    <span>Mutiline message is:</span>
    <p style="white-space: pre">{{ message }}</p>
    <br>
    <textarea v-model="message" placeholder="add multiple lines"></textarea>
</div>
<div id="app-2">
    <input type="checkbox" id="jack" value="jack" v-model="checkedNames">
    <label for="jack">jack</label>
    <input type="checkbox" id="tom" value="tom" v-model="checkedNames">
    <label for="tom">tom</label>
    <input type="checkbox" id="rose" value="rose" v-model="checkedNames">
    <label for="rose">rose</label>
    <br>
    <span>Checked names:{{ checkedNames }}</span>

</div>
<script>
    app1 = new Vue({
        el: '#app-1',
        data: {
            message: ''
        }
    })
    app2 = new Vue({
        el: '#app-2',
        data: {
            checkedNames: []
        }
    })
</script>
</body>
</html>